package com.ruoyi.ombanner.controller;

import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.ombanner.domain.OmBanner;
import com.ruoyi.ombanner.service.IOmBannerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;

import javax.servlet.http.HttpServletResponse;
import java.util.List;

/**
 * banner管理Controller
 * 
 * @author ruoyi
 * @date 2025-02-24
 */
@RestController
@RequestMapping("/mp/om/banner")
public class MpOmBannerController extends BaseController
{
    @Autowired
    private IOmBannerService omBannerService;


    @GetMapping("/list")
    public TableDataInfo list(OmBanner omBanner)
    {
        startPage();
        List<OmBanner> list = omBannerService.selectOmBannerList(omBanner);
        return getDataTable(list);
    }


}
